package com.yuanhua.xcxmng.wechat.service;

import com.yuanhua.xcxmng.wechat.entity.User;

/**
 * The interface User device service.
 *
 * @author hzy24985
 * @version $Id : UserDeviceService, v 0.1 2018/8/14 下午2:14 hzy24985 Exp $
 */
public interface UserDeviceService {
    /**
     * Save device link int.
     *
     * @param deviceId the device id
     * @param user     the user
     * @return the int
     */
    int saveDeviceLink(String deviceId, User user);

    /**
     * Relieve link.
     *
     * @param deviceId the device id
     * @param user     the user
     */
    void relieveLink(String deviceId, User user);

    /**
     * Gets binding device id by open id.
     *
     * @param openId the open id
     * @return the binding device id by open id
     */
    String getBindingDeviceIdByOpenId(String openId);
}
